import 'package:flutter_enjoy/constants/index.dart';
import 'package:flutter_enjoy/utils/RequestDio.dart';

class HomeApi {
  static Future getAnnouncementList() async {
    final res = await requestDio.get(HTTP_PATH.ANNOUNCEMENT_LIST);
    return res;
  }

  // 列表详情
  static Future getAnnouncementDetail(String id) async {
    final res = await requestDio.get('${HTTP_PATH.ANNOUNCEMENT_LIST}/$id');
    return res;
  }
}
